package com.jessechanrui.template.core.exception;


/**
 * @author chenrui
 * @version 1.0
 * @description ErrorCode
 * @date 2025/5/7
 */
public enum ErrorCode implements BaseErrorCode {
    DATABASE_ERROR("DATABASE_ERROR", "数据库异常");
    private final String code;
    private final String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
